package com.yc.cloud.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * <p>
 * 会员登录日志表
 * </p>
 *
 * @author Yancy
 * @since 2023-12-23
 */
@Data
@TableName("member_login_log")
@ApiModel(value = "MemberLoginLog对象", description = "会员登录日志表")
public class MemberLoginLog {

    private static final long serialVersionUID = 1L;
    @ApiModelProperty(value = "主键", hidden = true)
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    @ApiModelProperty("会员ID")
    @TableField("member_id")
    private Long memberId;

    @ApiModelProperty("登录时间")
    @TableField("login_time")
    private LocalDateTime loginTime;

    @ApiModelProperty("IP")
    @TableField("ip")
    private String ip;

    @ApiModelProperty("地址")
    @TableField("address")
    private String address;

    @ApiModelProperty("浏览器登录类型")
    @TableField("user_agent")
    private String userAgent;

    public static final String ID = "id";
    public static final String MEMBER_ID = "member_id";

    public static final String LOGIN_TIME = "login_time";

    public static final String IP = "ip";

    public static final String ADDRESS = "address";

    public static final String USER_AGENT = "user_agent";

}
